added login and authentication