Added view redirecting based on user login