Removed focus from Log in text box
Bug fixes and code clean up