implemented user login feature