User registration extended. Login via username added.