Add basic function for allowing user access to account details page