tyding up login form actions