Fixed Login bug with 400 error