first attempt at adding user login functionality