Added functionality for signup and login.

Also made the logout button work in the home page