a simple login mechanism

flash messages added