authenticates user logging in; adds flash/unflash methods to templater