made user login work