login and register hoocked up with backend