login

moved php from check_php to the login controller.