Added download and URL options for resources
Added redirect if user is already logged in