working login register dashboard