Fixed security issue with invalid logins. Tested under owncloud 5.0.5 with redmine 2.3

Added an additional check for the user status, so no blocked and not
activated users can not access the owncloud site anylonger.