Login Update

Fixed login script to handle preregistered members as a login and
register unregistered members