Added functionality in sign in