Resolved login issue

Login now accepts right credentials and rejects the wrong ones