implemented basic login functionality