Added redirection on the homepage depending if user is logged in - to index/login if not, gallery otherwise