Fixed error on new session form
added user login method