Adds sign in and out functionality