Added user verification (needs tests) and user login (should be fully tested)