Fixed the failed login bug, also a few style changes