completed add friends button functionality, added validation for user registration