Added sign in and registration functionality.