added basic login functionality