fix login page error and client username validation