added user_friendship model and then state machine. Having trouble with bug in the login process