mail validation small fix
registration bad request error fix