Restricted some methods to only work if user logs in