general cleanup for user login and app templates