Basic client authentification sys with just angularJs and Javascript.