Adding functionality
Login functionallity added
Added base template system