Troubleshooting friendships controller and user registration problem.