updated index so that if there is no user logged in, login screen pops up, so it is not possible to upload pics or vote unless you  are logged in