added function: register user in login frame