Registration and login checks added.