Bug fixes

Login system working again