Added functionality to user sign in