Add 4XX http status code to bad requests(register/login)