Add log_in helper,invalid login test and Create action