Create login, register and implement in index