Refactor the signup and signin code into the same controller. Simplified the logic and removes some bugs.