adding loader gif. init implementation of register page.