Added an ugly template and cleaned up login even more
Made a funtion to verify login and redirect to php page if loged in much less javascript