Moved nickname and password to login function