added check for nil
fixed login form markup and style
deleted obsolete file