Added controllers for all the functionalities and added security to the friend requests