Prevented storing in firebase when not logged in