made some changes for login and submit to work