auth controller error fix