fixed query to get accepted friendships
Updated login(sessions#create) controller to give a better error message (indicating if the email or the password caused the login to fail). Did this as an example for a student question, decided to keep it.