added login and auth