Added regestration and login (simple version).