error array implemented on login screen