Login feature done, refactor needed in some places