Refactor Login and create user logic