added login required to the gallery views