-Added public activity gem, run bundle

-Fixed the issue with logging in and redirecting to previous url