Added user sign in function and error if wrong info entered