<input type = "submit' name="submit" value="Log In">
<button type="submit" name="submit">Log in </button>
For input type submit, I write if ($this->input->post('submit') and then validation rules in controller. But it is not working with button type="submit". Is there any other code for button type??