Some change to login system

Including, but no limited to, exception, password size check, and stuff.