added user sign in fuctionality and if-then statements in relation to the sign in fucntionality