cleanup and create log in form