Finish user and admin function