Revert "Chaged the errocode form 400 to 401 in login API"

This reverts commit a924799f2ac5a925b8e20e2bbffb8b03bdcdd6ce.