Implements redirect to index with flash message (on modal) if login fail, else signs a user in.  Also modifies user model to make student_id readable (otherwise successful login results in error being thrown).