added function to user class for login verification
merged changes from julie & heather