fix regex in login