account functions for normal and registered user complete