design implementation
design implementation #2
minor design changes
login func.