Implemented Error codes on Login