added status codes
added login with maximum try counts