register and login complated and main javascript refaktor router added