Minor bug fixes, login validation