Fixing bad request on company login