Minor enhancement
Refactoring login system, separate login from register