Error helper added. Login now works