optimize menu login register