added new template and logic for signin