User signup and login functional.

Added code to allow users to signup and login. If they provide the
wrong credentials no access is granted.