added functionality to friendships, edited password reset