Implemented register user in gui